package com.itheima.pojo;

import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
public class Password {
    @Pattern(regexp = "^\\S{5,16}$")
    String old_pwd;
    @Pattern(regexp = "^\\S{5,16}$")
    String new_pwd;
    @Pattern(regexp = "^\\S{5,16}$")
    String re_pwd;
    @Pattern(regexp = "^\\S{5,16}$")
    String username;
    String code;
}
